﻿package events
{
	import flash.events.Event;
	import flash.geom.Point;
	
	public class MarcheEvent extends Event
	{
		public var segment : * ; 
		public var support : * ; 
		public var dynamic_pied_gauche : * ; 
		
		public static const LEVE : String = "leve" ;
		public static const POSE : String = "pose" ;
		public static const UPDATE : String = "update" ;
		public static const LOCALISE_SUPPORT : String = "LOCALISE_SUPPORT" ;
		public static const FIND_SUPPORT : String = "FIND_SUPPORT" ;
		public static const FIN_PAS : String = "FIN_PAS" ;
		public static const NO_SUPPORT : String = "NO_SUPPORT" ;
		
		public function MarcheEvent(type : String, segment:*=null, support:*=null, dynamic_pied_gauche:*=null ) 
		{
			super( type, true ) ;
			this.segment = segment ; 
			this.support = support ; 
			this.dynamic_pied_gauche = dynamic_pied_gauche ; 
		}
		override public function clone() : Event
		{
			return new MarcheEvent( type, segment, support, dynamic_pied_gauche ) ;
		}		
		override public function toString() : String
		{
			return "[MarcheEvent : " + type + " " + segment + "]" ;
		}		
	}
}